home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / honeytrouble.swf / scripts / DefineSprite_248_topMenu / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  2.3 KB  |  104 lines

  1. function game_pause(p)
  2. {
  3.    trace(p);
  4.    if(p)
  5.    {
  6.       _parent.game_pause = true;
  7.       _parent.stopAll.obj = _root;
  8.       _parent.stopAll.gotoAndPlay(2);
  9.       stopAllSounds();
  10.    }
  11.    else
  12.    {
  13.       trace("µ╕╕µêÅτ╗ºτ╗¡");
  14.       _parent.speed_listener.initSpeed();
  15.       _parent.game_pause = false;
  16.       _parent.stopAll.playObj(_root);
  17.       if(_parent.bgSnd_bool)
  18.       {
  19.          _parent.bg_sound.start(0,1000);
  20.       }
  21.       if(!_parent.speedCheck)
  22.       {
  23.          _quality = _parent.use_quality;
  24.       }
  25.       else
  26.       {
  27.          _parent.speed_listener.initSpeed();
  28.       }
  29.    }
  30.    play();
  31. }
  32. function reStart()
  33. {
  34.    delete _parent.pos_array;
  35.    _parent.clearAll();
  36.    _parent.setPara_default();
  37.    game_pause(false);
  38.    stopAllSounds();
  39.    _parent.gotoAndStop("start");
  40. }
  41. init_depth = this.getDepth();
  42. obj = new MovieClip();
  43. sobj = new MovieClip();
  44. checkObj = function(obj)
  45. {
  46.    obj.stopChecked = true;
  47.    for(name in obj)
  48.    {
  49.       if(typeof obj[name] == "movieclip" && obj[name] != this)
  50.       {
  51.          obj[name].frame55555 = obj[name]._currentframe;
  52.          if(!obj[name].stopChecked)
  53.          {
  54.             checkObj(obj[name]);
  55.          }
  56.       }
  57.    }
  58. };
  59. stopObj = function(obj)
  60. {
  61.    obj.stoped55555 = true;
  62.    for(name in obj)
  63.    {
  64.       if(typeof obj[name] == "movieclip" && obj[name] != this)
  65.       {
  66.          if(obj[name].frame55555 != obj[name]._currentframe && obj[name].frame55555 != undefined)
  67.          {
  68.             obj[name].stop55555 = true;
  69.             obj[name].stop();
  70.             if(obj[name] == _parent.center_mc && obj[name]._currentframe == 1)
  71.             {
  72.                delete obj[name].stop55555;
  73.             }
  74.          }
  75.          if(!obj[name].stoped55555 && obj[name] != _parent.center_mc)
  76.          {
  77.             stopObj(obj[name]);
  78.          }
  79.       }
  80.    }
  81. };
  82. playObj = function(obj)
  83. {
  84.    delete obj.stoped55555;
  85.    delete obj.stopChecked;
  86.    for(name in obj)
  87.    {
  88.       if(typeof obj[name] == "movieclip" && obj[name] != this)
  89.       {
  90.          if(obj[name].stop55555)
  91.          {
  92.             obj[name].play();
  93.             delete obj[name].stop55555;
  94.             delete obj[name].frame55555;
  95.          }
  96.          if(obj[name].stoped55555 != undefined)
  97.          {
  98.             playObj(obj[name]);
  99.          }
  100.       }
  101.    }
  102. };
  103. stop();
  104.